<template>
	<view>
		<button @click="getAll">获取所有数据</button>
	</view>
</template>

<script lang="ts" setup>
	const db = uniCloud.databaseForJQL()
	
	const getAll = async () => {
		const order = db.collection('codingguli-orders').getTemp()
		const book = db.collection('codingguli-books').getTemp()
		const result = await db.collection(order, book).get()
		console.log('拿到了数据', result);
	}
</script>

<style>
	       
</style>
